package com.quiz.bis.domain.bo;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.quiz.bis.domain.model.QuestionTypeConfig;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

/**
 * 试卷模板业务对象
 * @author ahuan
 */
@Data
public class PaperTemplateBO {
    private Long id;

    @NotBlank(message = "模板名称不能为空")
    private String name;

    private String description;

    private Integer questionCount;

    @NotNull(message = "总分不能为空")
    private BigDecimal totalScore;


    @NotNull(message = "知识点列表不能为空")
    private List<Long> knowledgeIds;

    @NotNull(message = "题型配置不能为空")
    private List<QuestionTypeConfig> questionTypeConfig;

}